<template>
  <div class="label">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="标签管理" name="1">
        <label-manage v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="标签组管理" name="2">
        <label-group v-if="activeName === '2'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

import labelManage from './components/label/labelmanage'
import labelGroup from './components/label/labelgroup'
export default {
  components: {
    labelGroup,
    labelManage
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.label {
  padding: 0px 20px;
}
</style>

